package com.sf.decorator;

/**
 * @author 埔枘
 * @date 2019/12/03
 * 香肠装饰器模式
 **/
public class SausageHandCakeDecorator extends HandCakeDecorator{

    public SausageHandCakeDecorator(HandCake handCake) {
        super(handCake);
    }

    @Override
    protected void doSomething() {

    }

    @Override
    protected String getName() {
        return super.getName() + "+ 香肠";
    }

    @Override
    protected int getPrice() {
        return super.getPrice() + 2;
    }
}
